package com.lhx.arrray.bilibili;

//斐波那契数列
public class array_feibonaqie {
    public static int fibonacci(int n) {
        if(n==0) return 0;
        if(n == 1) return 1;
        return fibonacci(n-1)+fibonacci(n-2);
    }

    public static void main(String[] args) {
        System.out.println(fibonacci(10));
    }
}
